package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_customer")
public class Customer {
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    private String jobNo;
    private String name;
    private String department;

    // 使用alt + insert快捷键生成构造方法、get方法、set方法

    public Customer() {
    }

    public Customer(Long id, String jobNo, String name, String department) {
        this.id = id;
        this.jobNo = jobNo;
        this.name = name;
        this.department = department;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJobNo() {
        return jobNo;
    }

    public void setJobNo(String jobNo) {
        this.jobNo = jobNo;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
}
